package com.example.nft.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.nft.dao.Tutu2Mapper;

import com.example.nft.entity.Tutu2;
import com.example.nft.service.Tutu2Service;
import io.swagger.annotations.ApiOperation;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.springframework.web.bind.annotation.*;


import javax.annotation.Resource;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;



/**
 * (Tutu2)表控制层
 *
 * @author makejava
 * @since 2022-04-08 22:13:25
 */
@RestController
@RequestMapping("tutu2")
public class Tutu2Controller {

    @Resource
    private Tutu2Service tutu2Service;

    @ApiOperation (value = "查询")
    @GetMapping("/select")
    public List<Tutu2> selectAll(String fenqu, String name){
        if (fenqu==null&&name==null){
            return tutu2Service.selectAll();
        }
        return tutu2Service.selectAll(fenqu,name);
    }


    @ApiOperation(value = "插入")
    @GetMapping("/testDemo")
    public String testDemo(){
       return tutu2Service.insert();
    }

}

